﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
    <div class="site_map" align="left">Trang chu <img src="/onlinemarket/img/navbit-arrow-right.png"/>Comment</div>
    <div class="heading">
        <div class="heading_left"></div>
        <div class="heading_right"></div>
        <div class="heading_center">
        	<h3>Quản lý comment</h3>
        </div>
         <div class="table">
            <h1>&nbsp;</h1>
            
            <!-- hien thi chi th??tin h??on-->
<table class="border" style="width: 100%;">
    <tr>
        <th>Khách hàng</th>
        <th>Sản phẩm</th>
        <th>Ngày</th>
        <th>Nội Dung</th>
		<th>Chức năng</th>
    </tr>


<?php foreach ($comment as $comments) { ?>
<tr>
	<td align="center"><?php echo($comments['Comment']['customer_id']); ?>&nbsp;</td>
	<td ali<td align="center"><?php echo($comments['Comment']['product_id']); ?>&nbsp;</td>
	<td align="center"><?php echo($comments['Comment']['date']); ?>&nbsp;</td>
	<td align="center"><?php echo($comments['Comment']['cm_content']); ?>&nbsp;</td>
	 
	<td align="center">
        <img style="cursor: pointer;" src="/onlinemarket/img/system/bt_edit.png" onclick="onEdit('/onlinemarket/comments/index/<?php echo($comments['Comment']['id']);?>')" alt="edit" title="edit"/>
        <img style="cursor: pointer;" src="/onlinemarket/img/system/bt_delete.png" onclick="onEdit('/onlinemarket/comments/delete/?id=<?php echo($comments['Comment']['id']);?>')" alt="edit" title="edit"/>
    </td>
</tr>
<?php } ?>

</table>
</div>
<script>
function onEdit(link) {
        window.location = link;
    }
    function onCancel() {
        $('form').slideUp('slow');
    }
</script>

</body>
</html>